home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Programming / CVS / source / src / smakefile < prev   
Encoding:
Makefile  |  2001-04-28  |  5.7 KB  |  203 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Makefile for GNU CVS program.
  3. # Do not use this makefile directly, but only from `../Makefile'.
  4. # Copyright (C) 1986, 1988-1990 Free Software Foundation, Inc.
  5.  
  6. # This program is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation; either version 2, or (at your option)
  9. # any later version.
  10.  
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15.  
  16. SHELL = /bin/sh
  17.  
  18. srcdir     = .
  19. top_srcdir = ..
  20.  
  21. prefix = 
  22. exec_prefix = ${prefix}
  23.  
  24. # Where to install the executables.
  25. bindir = ${exec_prefix}/bin
  26.  
  27. # Where to put the system-wide .cvsrc file
  28. libdir = ${exec_prefix}/lib
  29.  
  30. # Where to put the manual pages.
  31. mandir = ${prefix}/man
  32.  
  33. # Use cp if you don't have install.
  34. INSTALL = /bin/install -c
  35. INSTALL_DATA = ${INSTALL} -m 644
  36. INSTALL_PROGRAM = ${INSTALL}
  37.  
  38. LIBS = 
  39.  
  40. SOURCES = add.c admin.c annotate.c buffer.c checkin.c checkout.c classify.c client.c \
  41. commit.c create_adm.c cvsrc.c diff.c edit.c entries.c error.c expand_path.c \
  42. fileattr.c find_names.c hardlink.c hash.c history.c ignore.c import.c \
  43. lock.c log.c login.c logmsg.c main.c mkmodules.c modules.c myndbm.c no_diff.c \
  44. parseinfo.c patch.c rcs.c rcscmds.c recurse.c release.c remove.c repos.c \
  45. root.c scramble.c server.c status.c subr.c filesubr.c run.c tag.c update.c \
  46. watch.c wrapper.c vers_ts.c version.c zlib.c
  47.  
  48. OBJ1 = add.o admin.o annotate.o buffer.o checkin.o checkout.o classify.o \
  49. client.o commit.o create_adm.o cvsrc.o diff.o edit.o entries.o expand_path.o \
  50. fileattr.o find_names.o hardlink.o hash.o history.o ignore.o import.o \
  51. lock.o log.o login.o logmsg.o main.o mkmodules.o modules.o myndbm.o no_diff.o
  52.  
  53. OBJ2 = parseinfo.o patch.o rcs.o rcscmds.o recurse.o release.o remove.o repos.o \
  54. root.o scramble.o server.o status.o tag.o update.o watch.o wrapper.o vers_ts.o \
  55. subr.o filesubr.o run.o version.o error.o zlib.o
  56.  
  57. OBJECTS = $(OBJ1) $(OBJ2)
  58.  
  59. HEADERS = buffer.h cvs.h rcs.h hardlink.h hash.h myndbm.h \
  60.     update.h server.h client.h error.h fileattr.h edit.h watch.h
  61.  
  62. TAGFILES = $(HEADERS) options.h.in $(SOURCES)
  63.  
  64. DISTFILES = .cvsignore Makefile.in \
  65.         ChangeLog ChangeLog-97 ChangeLog-96 ChangeLog-9395 ChangeLog-9194 \
  66.             sanity.sh cvsbug.sh $(TAGFILES) build_src.com
  67.  
  68. PROGS = cvs cvsbug
  69.  
  70. DEFS = define=HAVE_CONFIG_H 
  71.  
  72. CC     = sc
  73. CFLAGS = cpu=any utillib code=far commentnest structureequivalence stringmerge nostackcheck \
  74.          optimize opttime optschedule debug=line
  75. CPPFLAGS =
  76. LDFLAGS = 
  77.  
  78. INCLUDES = idir="" idir="/" idir="/lib" idir="/amiga/include" idir="/amiga" idir="/amiga/netinclude"
  79. .c.o:
  80.     $(CC) $(CPPFLAGS) $(INCLUDES) $(DEFS) $(CFLAGS) $<
  81.  
  82. all: cvs
  83. .PHONY: all
  84.  
  85. saber_cvs:
  86.     @cd ..; $(MAKE) saber SUBDIRS=src
  87.  
  88. lint:
  89.     @cd ..; $(MAKE) lint SUBDIRS=src
  90.  
  91. install: installdirs
  92.     @for prog in $(PROGS); do \
  93.       echo Installing $$prog in $(bindir); \
  94.       $(INSTALL) $$prog $(bindir)/$$prog ; \
  95.     done
  96.  
  97. installdirs:
  98.     $(SHELL) $(top_srcdir)/mkinstalldirs $(bindir)
  99.  
  100. .PHONY: install installdirs
  101.  
  102. installcheck:
  103.     $(SHELL) $(srcdir)/sanity.sh $(bindir)/cvs
  104. .PHONY: installcheck
  105.  
  106. check: all
  107.     $(SHELL) $(srcdir)/sanity.sh `pwd`/cvs
  108. .PHONY: check
  109.  
  110. # I'm not sure there is any remaining reason for this to be separate from
  111. # `make check'.
  112. remotecheck: all
  113.     $(SHELL) $(srcdir)/sanity.sh -r `pwd`/cvs
  114. .PHONY: remotecheck
  115.  
  116. tags: $(TAGFILES)
  117.     ctags $(TAGFILES)
  118.  
  119. TAGS: $(TAGFILES)
  120.     etags `for i in $(TAGFILES); do echo $(srcdir)/$$i; done`
  121.  
  122. ls:
  123.     @echo $(DISTFILES)
  124. .PHONY: ls
  125.  
  126. clean:
  127.     rm -f $(PROGS) *.o core check.log check.plog
  128. .PHONY: clean
  129.  
  130. distclean: clean
  131.     rm -f tags TAGS Makefile options.h
  132. .PHONY: distclean
  133.  
  134. realclean: distclean
  135. .PHONY: realclean
  136.  
  137. dist-dir:
  138.     mkdir ${DISTDIR}
  139.     for i in ${DISTFILES}; do \
  140.       ln $(srcdir)/$${i} ${DISTDIR}; \
  141.     done
  142. .PHONY: dist-dir
  143.  
  144. # Linking rules.
  145.  
  146. #$(PROGS): ../lib/libcvs.a ../zlib/libz.a ../diff/libdiff.a
  147.  
  148. cvs: $(OBJECTS) /amiga/amiga.lib /lib/cvs.lib /zlib/z.lib /diff/diff.lib
  149.     oml src1.lib r $(OBJ1)
  150.   oml src2.lib r $(OBJ2)
  151.   slink lib:cres.o to $@.debug lib /amiga/amiga.lib lib:sc.lib lib:debug.lib lib:small.lib \
  152.   src1.lib src2.lib /lib/cvs.lib /zlib/z.lib /diff/diff.lib addsym batch smalldata smallcode \
  153.   map $@.map,fhx fwidth 32 pwidth 32 swidth 32 with lib:utillib.with addsym
  154.   slink $@.debug to $@ nodebug noicons
  155.     protect $@ +p
  156.  
  157. xlint: $(SOURCES)
  158.     files= ; \
  159.     for i in $(SOURCES) ; do \
  160.       files="$$files $(srcdir)/$$i" ; \
  161.     done ; \
  162.     sh -c "lint $(DEFS) $(INCLUDES) $$files | grep -v \"possible pointer alignment problem\" \
  163.     | grep -v \"argument closure unused\""
  164.  
  165. saber: $(SOURCES)
  166.     # load $(CFLAGS) $(SOURCES)
  167.     # load ../lib/libcvs.a $(LIBS)
  168.  
  169. cvsbug: cvsbug.sh $(srcdir)/version.c
  170.     echo > .fname \
  171.       cvs-`sed < $(srcdir)/version.c \
  172.             -e '/version_string/!d' \
  173.             -e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
  174.             -e q`
  175.     sed -e 's,xLIBDIRx,$(libdir)/cvs,g' \
  176.         -e "s,xVERSIONx,`cat .fname`,g" $(srcdir)/$@.sh > $@-t
  177.     rm -f .fname
  178.     mv $@-t $@
  179.     chmod a+x $@
  180.  
  181. # Compilation rules.
  182.  
  183. $(OBJECTS): $(HEADERS) options.h
  184.  
  185. rcscmds.o: rcscmds.c /diff/diffrun.h
  186.     $(CC) $(CPPFLAGS) $(INCLUDES) idir="/diff" $(DEFS) $(CFLAGS) rcscmds.c
  187.  
  188. zlib.o: zlib.c /zlib/zlib.h
  189.     $(CC) $(CPPFLAGS) $(INCLUDES) idir="/zlib" $(DEFS) $(CFLAGS) zlib.c
  190.  
  191. subdir = src
  192. #Makefile: ../config.status Makefile.in
  193. #    cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  194.  
  195. #options.h: ../config.status options.h.in
  196. #    cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  197.  
  198. #../config.status: ../configure
  199. #    cd .. ; $(SHELL) config.status --recheck
  200.  
  201. #../configure: ../configure.in
  202. #    cd $(top_srcdir) ; autoconf
  203.